import 'package:xixi/http/manager.dart';

Future getIchongList(String type) async {
  String url = "/ichong/pachong/list?type=$type";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}

Future getIchongDetail(String id, String type) async {
  String url = "/ichong/pachong/detail?key=$type&id=$id";
  try {
    var response = await HttpUtils.request(url, method: HttpUtils.GET);
    return response['data'];
  } catch (e) {
    print(e);
  }
}
